package routers

import (
	"gin-project-01/gin-step04/gin17-mutli-tables/controllers/student"
	"gin-project-01/gin-step04/gin17-mutli-tables/middlewares"
	"github.com/gin-gonic/gin"
)

func StudentRouters(r *gin.Engine) {
	//路由分组中间件使用方式二
	routers := r.Group("/student")
	routers.Use(middlewares.SaveAccessLog)
	{

		routers.GET("/list/:all", student.StudentController{}.List)

	}
}
